package studentinformationmanagementsystem.entity;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 苗庆
 * @version 1.0
 * 必修课表实体类
 */
public class RequiredCourse implements Serializable {
    private static final long serialVersionUID = 1L;

    //必修课表id
    private Integer requiredcourseid;

    //学生表id
    private   Integer studid;

    //教师任课表id
    private Integer teachersschedulesid;

    //成绩
    private String achievement;

    public RequiredCourse() {

    }

    public RequiredCourse(Integer requiredcourseid, Integer studid, Integer teachersschedulesid, String achievement) {
        this.requiredcourseid = requiredcourseid;
        this.studid = studid;
        this.teachersschedulesid = teachersschedulesid;
        this.achievement = achievement;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RequiredCourse that = (RequiredCourse) o;
        return requiredcourseid.equals(that.requiredcourseid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(requiredcourseid);
    }

    @Override
    public String toString() {
        return "RequiredCourse{" +
                "requiredcourseid=" + requiredcourseid +
                ", studid=" + studid +
                ", teachersschedulesid=" + teachersschedulesid +
                ", achievement='" + achievement + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getRequiredcourseid() {
        return requiredcourseid;
    }

    public void setRequiredcourseid(Integer requiredcourseid) {
        this.requiredcourseid = requiredcourseid;
    }

    public Integer getStudid() {
        return studid;
    }

    public void setStudid(Integer studid) {
        this.studid = studid;
    }

    public Integer getTeachersschedulesid() {
        return teachersschedulesid;
    }

    public void setTeachersschedulesid(Integer teachersschedulesid) {
        this.teachersschedulesid = teachersschedulesid;
    }

    public String getAchievement() {
        return achievement;
    }

    public void setAchievement(String achievement) {
        this.achievement = achievement;
    }
}
